package cn.enjoy.tool.juc.SimpleThreadPool;

/**
 * @author K
 * @date 2021/7/30 下午3:20
 */
public interface ThreadPool<Job extends Runnable> {

    void execute(Job job);

    void shutdown();

    void addWorkers(int num);

    void removeWorker(int num);

    int getJobSize();

}
